def toUppers(L):
    return [e.upper() for e in L if isinstance(e,str)]

print toUppers(['Hello','world',101])
